#include "WriteFifo.h"

WriteFifo::WriteFifo(const std::string name) : Fifo(name) {
}

WriteFifo::~WriteFifo() {
}

void WriteFifo::open_() {
	fd = open ( name.c_str(),O_WRONLY );
	if ( fd < 0 ){
		throw Exception(std::string("Error al abrir fifo para escritura: ") + name);
	}
}

ssize_t WriteFifo::write_(const void* buffer,const ssize_t buffsize) const {
	return write ( fd,buffer,buffsize );
}
